n = int(input('请输入一个整数'))
sum = 0
for i in range(n+1):
    sum +=i
print('1-%d的求和结果为%d'%(n,sum))

l =[]
for i in range(3):
    x = int (input('请输入整数:'))
    l.append(x)
    l.sort()
    print(l)

for i in range(1,10):
    for j in range(1,i+1):
       print("%d*%d=%-2d" %(j,i,i*j),end='')
       print('')

l = [1,2]
n = int(input("斐波那契数列:"))
while (len(l)<n):
    l.append(l[len(l)-1]+l[len(l)-2])
print(l)

for i in range(1,1000):
    s=0
    for j in range(1,1):
        if i%j == 0:
            s+=j
    if s ==i:
        print("%s" %i)
